<include file="Public/head" />

        <!-- <header class="ncsc-head-layout w">
        <div class="wrapper">
        <div class="ncsc-admin w252">
        <dl class="ncsc-admin-info">
        <dt class="admin-avatar"><img src="__PUBLIC__/home/images/seller/default_user_portrait.gif" width="32" class="pngFix" alt=""/></dt></dl>
        <div class="ncsc-admin-function">
        <div class="index-search-container">
        <p class="admin-name"><a class="seller_name" href="">seller</a></p>
        <div class="index-sitemap"><a class="iconangledown" href="javascript:void(0);">快捷导航 <i class="icon-angle-down"></i></a>
        <div class="sitemap-menu-arrow"></div>
        <div class="sitemap-menu">
        <div class="title-bar">
        <h2>管理导航</h2>
        <p class="h_tips"><em>小提示：添加您经常使用的功能到首页侧边栏，方便操作。</em></p>
        <img src="__PUBLIC__/home/images/obo.png" alt="">
        <span id="closeSitemap" class="close">X</span></div>
        <div id="quicklink_list" class="content">
        <dl>
        <dt>商品</dt>
        <dd class="selected">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_addEditGoods" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/addEditGoods.html> 商品发布 </a></dd>
        <dd class="selected">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_goodsList" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/goodsList.html> 出售中的商品 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_goods_offline" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/goods_offline.html> 仓库中的商品 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_stock_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/stock_list.html> 库存日志 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_specList" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/specList.html> 商品规格 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Goods_brandList" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Goods/brandList.html> 品牌申请 </a></dd>
        </dl>
        <dl>
        <dt>订单物流</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Order_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Order/index.html> 订单列表 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Order_virtual_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Order/virtual_list.html> 虚拟订单 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Order_delivery_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Order/delivery_list.html> 发货商品 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Plugin_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Plugin/index.html> 发货设置 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Comment_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Comment/index.html> 商品评论 </a></dd>
        </dl>
        <dl>
        <dt>促销</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Promotion_flash_sale" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Promotion/flash_sale.html> 抢购管理 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Promotion_group_buy_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Promotion/group_buy_list.html> 团购管理 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Promotion_prom_goods_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Promotion/prom_goods_list.html> 商品促销 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Promotion_prom_order_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Promotion/prom_order_list.html> 订单促销 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Coupon_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Coupon/index.html> 代金券管理 </a></dd>
        </dl>
        <dl>
        <dt>店铺</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_store_setting" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/store_setting.html> 店铺设置 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_store_decoration" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/store_decoration.html> 店铺装修 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_navigation_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/navigation_list.html> 店铺导航 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_bind_class_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/bind_class_list.html> 经营类目 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_store_info" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/store_info.html> 店铺信息 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_goods_class" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/goods_class.html> 店铺分类 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_suppliers_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/suppliers_list.html> 供货商 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Store_store_collect" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Store/store_collect.html> 店铺关注 </a></dd>
        </dl>
        <dl>
        <dt>售后服务</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Service_ask_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Service/ask_list.html> 咨询管理 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Service_return_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Service/return_list.html> 退货换货 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Service_complain_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Service/complain_list.html> 投诉管理 </a></dd>
        </dl>
        <dl>
        <dt>统计结算</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Finance_withdrawals" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Finance/withdrawals.html> 提现申请 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Finance_remittance" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Finance/remittance.html> 汇款列表 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Finance_order_statis" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Finance/order_statis.html> 店铺结算记录 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Finance_order_no_statis" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Finance/order_no_statis.html> 未结算订单 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Report_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Report/index.html> 店铺概况 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Report_finance" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Report/finance.html> 运营报告 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Report_saleTop" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Report/saleTop.html> 销售排行 </a></dd>
        </dl>
        <dl>
        <dt>客服消息</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Index_store_service" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Index/store_service.html> 客服设置 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Index_store_msg" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Index/store_msg.html> 系统消息 </a></dd>
        </dl>
        <dl>
        <dt>账号</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Admin_index" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Admin/index.html> 账号列表 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Admin_role" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Admin/role.html> 账号组 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Admin_log" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Admin/log.html> 账号日志 </a></dd>
        </dl>
        <dl>
        <dt>分销</dt>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Distribut_goods_list" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Distribut/goods_list.html> 分销商品 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Distribut_distribut" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Distribut/distribut.html> 分销设置 </a></dd>
        <dd class="">
        <i nctype="btn_add_quicklink" data-quicklink-act="Distribut_rebate_log" class="icon-check" title="添加为常用功能菜单"></i>
        <a href=/index.php/seller/Distribut/rebate_log.html> 分成记录 </a></dd>
        </dl>
        </div>
        </div>
        </div>
        </div>
        <a class="iconshop" href="/index.php/Home/Store/index/store_id/1.html" title="前往店铺" ><i class="icon-home"></i>&nbsp;店铺</a>
        <a class="iconshop" href="/index.php/seller/Admin/admin_info/seller_id/1.html" title="修改密码" target="_blank"><i class="icon-wrench"></i>&nbsp;设置</a>
        <a class="iconshop" href="/index.php/seller/Admin/logout.html" title="安全退出"><i class="icon-signout"></i>&nbsp;退出</a></div></div>
        <div class="center-logo"> <a href="/" target="_blank">
        <img src="__PUBLIC__/home/images/seller/seller_center_logo.png" class="pngFix" alt=""/></a>
        <h1>商家中心</h1></div>
        <nav class="ncsc-nav">
        <dl >
        <dt><a href="/index.php/seller/Index/index.html">首页</a></dt>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Goods&a=addEditGoods">商品</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Goods/addEditGoods.html'> 商品发布 </a></li>
        <li> <a href='/index.php/seller/Goods/goodsList.html'> 出售中的商品 </a></li>
        <li> <a href='/index.php/seller/Goods/goods_offline.html'> 仓库中的商品 </a></li>
        <li> <a href='/index.php/seller/Goods/stock_list.html'> 库存日志 </a></li>
        <li> <a href='/index.php/seller/Goods/specList.html'> 商品规格 </a></li>
        <li> <a href='/index.php/seller/Goods/brandList.html'> 品牌申请 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Order&a=index">订单物流</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Order/index.html'> 订单列表 </a></li>
        <li> <a href='/index.php/seller/Order/virtual_list.html'> 虚拟订单 </a></li>
        <li> <a href='/index.php/seller/Order/delivery_list.html'> 发货商品 </a></li>
        <li> <a href='/index.php/seller/Plugin/index.html'> 发货设置 </a></li>
        <li> <a href='/index.php/seller/Comment/index.html'> 商品评论 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Promotion&a=flash_sale">促销</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Promotion/flash_sale.html'> 抢购管理 </a></li>
        <li> <a href='/index.php/seller/Promotion/group_buy_list.html'> 团购管理 </a></li>
        <li> <a href='/index.php/seller/Promotion/prom_goods_list.html'> 商品促销 </a></li>
        <li> <a href='/index.php/seller/Promotion/prom_order_list.html'> 订单促销 </a></li>
        <li> <a href='/index.php/seller/Coupon/index.html'> 代金券管理 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Store&a=store_setting">店铺</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Store/store_setting.html'> 店铺设置 </a></li>
        <li> <a href='/index.php/seller/Store/store_decoration.html'> 店铺装修 </a></li>
        <li> <a href='/index.php/seller/Store/navigation_list.html'> 店铺导航 </a></li>
        <li> <a href='/index.php/seller/Store/bind_class_list.html'> 经营类目 </a></li>
        <li> <a href='/index.php/seller/Store/store_info.html'> 店铺信息 </a></li>
        <li> <a href='/index.php/seller/Store/goods_class.html'> 店铺分类 </a></li>
        <li> <a href='/index.php/seller/Store/suppliers_list.html'> 供货商 </a></li>
        <li> <a href='/index.php/seller/Store/store_collect.html'> 店铺关注 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Service&a=ask_list">售后服务</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Service/ask_list.html'> 咨询管理 </a></li>
        <li> <a href='/index.php/seller/Service/return_list.html'> 退货换货 </a></li>
        <li> <a href='/index.php/seller/Service/complain_list.html'> 投诉管理 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Finance&a=withdrawals">统计结算</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Finance/withdrawals.html'> 提现申请 </a></li>
        <li> <a href='/index.php/seller/Finance/remittance.html'> 汇款列表 </a></li>
        <li> <a href='/index.php/seller/Finance/order_statis.html'> 店铺结算记录 </a></li>
        <li> <a href='/index.php/seller/Finance/order_no_statis.html'> 未结算订单 </a></li>
        <li> <a href='/index.php/seller/Report/index.html'> 店铺概况 </a></li>
        <li> <a href='/index.php/seller/Report/finance.html'> 运营报告 </a></li>
        <li> <a href='/index.php/seller/Report/saleTop.html'> 销售排行 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Index&a=store_service">客服消息</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Index/store_service.html'> 客服设置 </a></li>
        <li> <a href='/index.php/seller/Index/store_msg.html'> 系统消息 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Admin&a=index">账号</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Admin/index.html'> 账号列表 </a></li>
        <li> <a href='/index.php/seller/Admin/role.html'> 账号组 </a></li>
        <li> <a href='/index.php/seller/Admin/log.html'> 账号日志 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        <dl >
        <dt><a href="/index.php?m=Seller&c=Distribut&a=goods_list">分销</a></dt>
        <dd>
        <ul>	
        <li> <a href='/index.php/seller/Distribut/goods_list.html'> 分销商品 </a></li>
        <li> <a href='/index.php/seller/Distribut/distribut.html'> 分销设置 </a></li>
        <li> <a href='/index.php/seller/Distribut/rebate_log.html'> 分成记录 </a> </li></ul>
        </dd>
        <dd class="arrow"></dd></dl>
        </nav>
        </div>
        </header> -->
        <div class="ncsc-layout wrapper">
            <div id="layoutLeft" class="ncsc-layout-left">
                <div id="sidebar" class="sidebar">
                    <div class="column-title" id="main-nav">
                        <span class="ico-goods"></span>
                        <h2>商品</h2></div>
                    <div class="column-menu">
                        <ul id="seller_center_left_menu">
                            <volist name="leftmenu['list']" id="vo">
                                <li class='
                            <if condition="$actionurl eq $vo[url]">
                                current
                            </if>
                        '>
                                    <a href="__MODULE__/{$vo.url}"> {$vo.name}</a>
                                </li>
                            </volist>
                        </ul>
                    </div>
                </div>
            </div>

            <div id="layoutRight" class="ncsc-layout-right">
                <div class="ncsc-path">
                    <i class="icon-desktop"></i>商家管理中心
                    <i class="icon-angle-right"></i>商品
                    <i class="icon-angle-right"></i>出售中的商品</div>
                <div class="main-content" id="mainContent">
                    <div class="tabmenu">
                        <ul class="tab pngFix">
                            <li class="active">
                                <a href="{:U('index')}">所有商品</a></li>
                        </ul>
                        <a href="{:U('add')}" class="ncbtn ncbtn-mint" title="发布新商品">发布新商品</a></div>
                    <div class="alert alert-block mt10">
                        <ul class="mt5">
                            <li>1、商品下架以后，重新上架之前需要平台审核.</li></ul>
                    </div>
                    <form action="{:U('index')}" id="search-form2" method="post" >
                        <table class="search-form">
                            <tr>
                                <td>&nbsp;</td>
                                <!-- <th>本店分类</th>
                                <td class="w80">
                                    <select name="store_cat_id1" id="store_cat_id1" class="select">
                                        <option value="">本店分类</option></select>
                                </td> -->
                                <th class="w60">新品/推荐</th>
                                <td class="w80">
                                    <select name="intro" class="select">
                                        <option value="is_all"  <eq name="intro1" value="is_all"> selected </eq> >全部</option>
                                        <option value="is_hot"  <eq name="intro1" value="is_hot"> selected </eq> >热卖</option>
                                        <option value="is_new"  <eq name="intro1" value="is_new"> selected </eq> >新品</option>
                                        <option value="is_top"  <eq name="intro1" value="is_top"> selected </eq> >推荐</option></select>
                                </td>
                                <td class="w160">
                                    <input type="text" class="text w150" name="key_word" value="{$Think.post.key_word}" placeholder="商品名称" /></td>
                                <td class="tc w70">
                                    <label class="submit-border">
                                        <input type="submit" class="submit" value="搜索" /></label>
                                </td>
                            </tr>
                        </table>
                    </form>
                    <div id="ajax_return">
                        <table class="ncsc-default-table">
                            <thead>
                                <tr nc_type="table_header">
                                    <th class="w30">
                                        <a href="javascript:sort('goods_id');">ID</a></th>
                                    <th class="w50">&nbsp;</th>
                                    <th class="w250">商品名称</th>
                                   <!--  <th class="w150">
                                        <a href="javascript:;">分类</a></th> -->
                                    <th class="w80">
                                        <a href="javascript:;">价格</a></th>
                                    <th class="w80">
                                        <a href="javascript:;">上架 / 下架</a></th>
                                    <th class="w30">
                                        <a href="javascript:;">库存</a></th>
                                    <th class="w80">
                                        <a href="javascript:;">上架时间</a></th>
                                    <th class="w80">
                                        <a href="javascript:;">状态</a></th>
                                    <th class="w30">
                                        <a href="javascript:;">排序</a></th>
                                    <th class="w120">操作</th></tr>
                            </thead>
                            <tbody>
                                <foreach name="list" item="vo" key="k" >

                                    <tr class="bd-line">
                                        <td>{$vo['id']}</td>
                                        <td>
                                            <div class="pic-thumb">
                                                <a href="#" target="_blank">
                                                    <img style="width:32px;height:32px" src="{$vo['goods_thumb']}"></a>
                                            </div>
                                        </td>
                                        <td class="tl">
                                            <dl class="goods-name">
                                                <dt style="max-width: 450px !important;">
                                                    <a href="/index.php/Home/Goods/goodsInfo/id/79.html" target="_blank">{$vo['goods_name']}</a></dt>
                                                <dd>商品货号：{$vo['goods_sn']}</dd>
                                            </dl>
                                        </td>
                                        <!-- <td>
                                            <span>{$vo['shop_cat_name']}</span></td> -->
                                        <td>
                                            <span>¥{$vo['sell_price']}</span></td>
                                        <td>
                                            <img width="20" height="20" onclick="change_status({$vo['id']}, {$vo['status']})"
                                                <switch name="vo.status">
                                                    <case value="1">src="__PUBLIC__/home/images/yes.png"</case>
                                                    <case value="0">src="__PUBLIC__/home/images/no.png"</case>
                                                </switch>></td>
                                        <td>
                                            <span style="">{$vo['goods_number']}</span></td>
                                        <td>{$vo['add_time']|date="Y-m-d H:i",###}</td>
                                        <td>
                                            <switch name="vo.is_pass">
                                                <case value="1"><span style="color:green">已通过</span></case>
                                                <case value="2"><span style="color:red">未通过</span></case>    
                                                <default /><span style="color:orange">未审核</span>
                                            </switch></td>
                                        <td>
                                            <input class="txt-cen change_order" type="text" value="{$vo['sort_order']}" 
                                                        size="5" gid="{$vo['id']}" ></td>
                                        <td class="nscs-table-handle">
                                            <span>
                                                <a href="{:U('edit',array('goods_id'=>$vo['id']))}" class="btn-bluejeans">
                                                    <i class="icon-edit"></i>
                                                    <p>编辑</p>
                                                </a>
                                            </span>
                                            <!-- <span>
                                                <a href="javascript:void(0);" onclick="del({$vo['id']})" class="btn-grapefruit">
                                                    <i class="icon-trash"></i>
                                                    <p>删除</p>
                                                </a>
                                            </span> -->
                                        </td>
                                    </tr>

                                </foreach>
                            </tbody>
                            <tfoot>

                                <tr>
                                    <td colspan="20">
                                     {$page}
                                    </td>
                                </tr> 
                            </tfoot>
                        </table>
                    </div>
                            
                    <script>$(document).ready(function() {
                            // ajax 加载商品列表
                            ajax_get_table('search-form2', 1);

                        });

                        // ajax 抓取页面 form 为表单id  page 为当前第几页
                        function ajax_get_table(form, page) {
                            cur_page = page; //当前页面 保存为全局变量
                        }
                        // 点击排序
                        function sort(field) {
                            $("input[name='orderby1']").val(field);
                            var v = $("input[name='orderby2']").val() == 'desc' ? 'asc': 'desc';
                            $("input[name='orderby2']").val(v);
                            ajax_get_table('search-form2', cur_page);
                        }

                        // 删除操作
                        function del(id) {
                            layer.confirm('确定要删除吗？', {
                                btn: ['确定', '取消'] //按钮
                            },
                            function() {
                                // 确定
                                $.ajax({
                                    url: "{:U('Home/Goods/del/id/"+id+"')}",
                                    success: function(v) {
                                        die;
                                        layer.closeAll();
                                        if(v.code == 1){
                                            layer.msg(v.msg, {
                                                icon: 2,
                                                time: 1000
                                            }); 

                                        } 
                                    }
                                });
                            },
                            function(index) {
                                layer.close(index);
                            });
                        }</script>
                </div>
            </div>
        </div>
        <div id="cti">
            <div class="wrapper">
                <ul></ul>
            </div>
        </div>
        <div id="faq">
            <div class="wrapper"></div>
        </div>
        <div id="footer">
            <p>
                <a href="/">首页</a>|
                <a href="http://www.tpshop.cn">招聘英才</a>|
                <a href="http://www.tpshop.cn">合作及洽谈</a>|
                <a href="http://www.tpshop.cn">联系我们</a>|
                <a href="http://www.tpshop.cn">关于我们</a>|
                <a href="http://www.tpshop.cn">物流自取</a>|
                <a href="http://www.tpshop.cn">友情链接</a></p>Copyright 2017
            <a href="" target="_blank">TPshop商城</a>All rights reserved.
            <br />本演示来源于
            <a href="http://www.tpshop.cn" target="_blank">www.tpshop.cn</a></div>
        <script type="text/javascript" src="__PUBLIC__/home/js/jquery.cookie.js"></script>
        <link href="__PUBLIC__/home/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="__PUBLIC__/home/js/perfect-scrollbar.min.js"></script>
        <script type="text/javascript" src="__PUBLIC__/home/js/qtip/jquery.qtip.min.js"></script>
        <link href="__PUBLIC__/home/js/qtip/jquery.qtip.min.css" rel="stylesheet" type="text/css">
        <div id="tbox">
            <div class="btn" id="msg">
                <a href="/index.php/Seller/index/store_msg.html">
                    <i class="msg">
                        <em>1</em></i>站内消息</a>
            </div>
            <div class="btn" id="im">
                <i class="im">
                    <em id="new_msg" style="display:none;"></em>
                </i>
                <a href="javascript:void(0);">在线联系</a></div>
            <div class="btn" id="gotop" style="display: block;">
                <i class="top"></i>
                <a href="javascript:void(0);">返回顶部</a></div>
        </div>
        <script type="text/javascript">var current_control = 'Goods/goodsList';
            $(document).ready(function() {
                //添加删除快捷操作
                $('[nctype="btn_add_quicklink"]').on('click',
                function() {
                    var $quicklink_item = $(this).parent();
                    var item = $(this).attr('data-quicklink-act');
                    if ($quicklink_item.hasClass('selected')) {
                        $.post("/index.php/Seller/Index/quicklink_del.html", {
                            item: item
                        },
                        function(data) {
                            $quicklink_item.removeClass('selected');
                            var idstr = 'quicklink_' + item;
                            $('#' + idstr).remove();
                        },
                        "json");
                    } else {
                        var scount = $('#quicklink_list').find('dd.selected').length;
                        if (scount >= 8) {
                            layer.msg('快捷操作最多添加8个', {
                                icon: 2,
                                time: 2000
                            });
                        } else {
                            $.post("/index.php/Seller/Index/quicklink_add.html", {
                                item: item
                            },
                            function(data) {
                                $quicklink_item.addClass('selected');
                                if (current_control == 'Index/index') {
                                    var $link = $quicklink_item.find('a');
                                    var menu_name = $link.text();
                                    var menu_link = $link.attr('href');
                                    var menu_item = '<li id="quicklink_' + item + '"><a href="' + menu_link + '">' + menu_name + '</a></li>';
                                    $(menu_item).appendTo('#seller_center_left_menu').hide().fadeIn();
                                }
                            },
                            "json");
                        }
                    }
                });
                //浮动导航  waypoints.js
                $("#sidebar,#mainContent").waypoint(function(event, direction) {
                    $(this).parent().toggleClass('sticky', direction === "down");
                    event.stopPropagation();
                });
            });
            // 搜索商品不能为空
            $('input[nctype="search_submit"]').click(function() {
                if ($('input[nctype="search_text"]').val() == '') {
                    return false;
                }
            });

            function fade() {
                $("img[rel='lazy']").each(function() {
                    var $scroTop = $(this).offset();
                    if ($scroTop.top <= $(window).scrollTop() + $(window).height()) {
                        $(this).hide();
                        $(this).attr("src", $(this).attr("data-url"));
                        $(this).removeAttr("rel");
                        $(this).removeAttr("name");
                        $(this).fadeIn(500);
                    }
                });
            }
            if ($("img[rel='lazy']").length > 0) {
                $(window).scroll(function() {
                    fade();
                });
            };
            fade();

            function delfunc(obj) {
                layer.confirm('确认删除？', {
                    btn: ['确定', '取消'] //按钮
                },
                function() {
                    // 确定
                    $.ajax({
                        type: 'post',
                        url: $(obj).attr('data-url'),
                        data: {
                            act: 'del',
                            del_id: $(obj).attr('data-id')
                        },
                        dataType: 'json',
                        success: function(data) {
                            layer.closeAll();
                            if (data == 1) {
                                layer.msg('操作成功', {
                                    icon: 1
                                });
                                $(obj).parent().parent().parent().remove();
                            } else {
                                layer.msg(data, {
                                    icon: 2,
                                    time: 2000
                                });
                            }
                        }
                    })
                },
                function(index) {
                    layer.close(index);
                    return false; // 取消
                });
            }




            function change_status(goods_id,status)
            {
                $.ajax({
                    url     :   "{:U('change_status')}",
                    data    :   {goods_id:goods_id, status:status},
                    type    :   "post",
                    success :   function(re){
                        window.location.reload();
                    }
                });
            }


            $(".change_order").blur(function(){
                var patten   = /^\d+$/;
                var value    = $(this).val();
                if(!patten.exec(value)){
                    layer.msg('请输入数字');
                    return false;
                }else{
                    var goods_id = $(this).attr('gid');
                    $.ajax({
                        url     :   "{:U('change_order')}",
                        data    :   {goods_id:goods_id, sort_order:value},
                        type    :   "post",
                        success :   function(re){
                            window.location.reload();
                        }
                    });
                }
            });
















            </script>
    </body>

</html>